package service

import (
	"context"
	"errors"
	"xs.jsjb/internal/app/menu/entity"
)

func (m *menuService) GetMenu(ctx context.Context, req *entity.GetMenuReq) (res *entity.GetMenuRes, err error) {
	res, err = m.repo.GetMenu(ctx, req.Title)
	if err != nil {
		return nil, errors.New("没有找到")
	}
	return res, nil

}
